package com.ouc.openplatform.ouc.authManage.service;

import java.util.List;

import com.ouc.openplatform.ouc.authManage.model.NJ_DepartmentStructure;
public interface NJ_DepartmentStructureService {
	// 1.保存部门信息-----sxl
	public int saveDepartmentStructure(NJ_DepartmentStructure NJ_DepartmentStructure);

	// 2.根据部门id删除部门信息---------sxl
	int deleteDepartmentStructure(int id);

	// 3.修改部门信息-----sxl
	public int updateDepartmentStructure(NJ_DepartmentStructure NJ_DepartmentStructure);

	// 4.根据父级id查询所有的部门信息------sxl
	public List<NJ_DepartmentStructure> getAllDepStructureBypid(int id);

	// 5.根据部门名称,部门编码和父级id判断部门名是否存在-----sxl
	public int IsOkDepartment(String departmentName, String departmentCode, int pid);

	// 6.获取所有部门信息-----sxl
	public List<NJ_DepartmentStructure> getAllDepartmentStructure(NJ_DepartmentStructure departmentStructure);

	// 根据父级id查询直接子id的个数------sxl
	public int getDepStructureCountBypid(int id);

}
